import { UploadStepPath } from "@/api/modules/upload";

import MerakUploadStep from "./index.vue";

export type MerakUploadStepInstance = InstanceType<typeof MerakUploadStep>;

/**
 * @param path 上传枚举路径 在 @/api/modules/upload 文件内写入
 * @param name 上传的文件字段名 默认 file
 * @param data 上传的额外数据集合
 * @param params 上传的参数集合
 */
export interface MerakUploadStepProps {
  path: UploadStepPath;
  name?: string;
  data?: Record<string, any>;
  params?: Record<string, any>;
}

export default MerakUploadStep;
